﻿using System;
using System.Collections.Generic;
using System.Text;


namespace OutlookMGI.Logica
{
    class LogicaFactory
    {
        /// <summary>
        /// implementación de singleton para la fabrica de controladores
        /// </summary>
        static private LogicaFactory _instance;

        /// <summary>
        /// implementación de singleton para la fabrica de controladores
        /// retorna una instancia de la fabrica
        /// </summary>
        /// <returns>LogicaFactory </returns>
        static public LogicaFactory getInstance()
        {
            if (_instance == null)
            {
                _instance = new LogicaFactory();
            }
            return _instance;
        }

        /// <summary>
        /// retorna un la fachada
        /// </summary>
        /// <returns>ILogica</returns>
        public ILogica getILogica()
        {
            return new CtrFachada();
        }
    }
}
